"use strict";
cc._RF.push(module, 'e26fd9yy65A4q3/JkpVnFYg', 'polyglot.min');
// src/polyglot.min.js

"use strict";

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

var n = module.exports = {};
var t = module;
var i = "function" == typeof Symbol && "symbol" == _typeof(Symbol.iterator) ? function (e) {
  return _typeof(e);
} : function (e) {
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : _typeof(e);
};

(function (e, o) {
  "function" == typeof define && define.amd ? define([], function () {
    return o(e);
  }) : "object" == (void 0 === n ? "undefined" : i(n)) ? t.exports = o(e) : e.Polyglot = o(e);
})(void 0, function (e) {
  function t(e) {
    e = e || {}, this.phrases = {}, this.extend(e.phrases || {}), this.currentLocale = e.locale || "en", this.allowMissing = !!e.allowMissing, this.warn = e.warn || a;
  }

  function n(e, t, n) {
    var i, a;
    return null != n && e ? i = function (e) {
      return e.replace(/^\s+|\s+$/g, "");
    }((a = e.split(c))[o(t, n)] || a[0]) : i = e, i;
  }

  function o(e, t) {
    return s[function (e) {
      var t = function (e) {
        var t,
            n,
            i,
            o = {};

        for (t in e) {
          if (e.hasOwnProperty(t)) for (i in n = e[t]) {
            o[n[i]] = t;
          }
        }

        return o;
      }(r);

      return t[e] || t.en;
    }(e)](t);
  }

  function a(t) {
    e.console && e.console.warn && e.console.warn("WARNING: " + t);
  }

  t.VERSION = "0.4.3", t.prototype.locale = function (e) {
    return e && (this.currentLocale = e), this.currentLocale;
  }, t.prototype.extend = function (e, t) {
    var n;

    for (var o in e) {
      e.hasOwnProperty(o) && (n = e[o], t && (o = t + "." + o), "object" == (void 0 === n ? "undefined" : i(n)) ? this.extend(n, o) : this.phrases[o] = n);
    }
  }, t.prototype.clear = function () {
    this.phrases = {};
  }, t.prototype.replace = function (e) {
    this.clear(), this.extend(e);
  }, t.prototype.t = function (e, t) {
    var i, o;
    return "number" == typeof (t = null == t ? {} : t) && (t = {
      smart_count: t
    }), "string" == typeof this.phrases[e] ? i = this.phrases[e] : "string" == typeof t._ ? i = t._ : this.allowMissing ? i = e : (this.warn('Missing translation for key: "' + e + '"'), o = e), "string" == typeof i && (t = function (e) {
      var t = {};

      for (var n in e) {
        t[n] = e[n];
      }

      return t;
    }(t), o = function (e, t) {
      for (var n in t) {
        "_" !== n && t.hasOwnProperty(n) && (e = e.replace(new RegExp("%\\{" + n + "\\}", "g"), t[n]));
      }

      return e;
    }(o = n(i, this.currentLocale, t.smart_count), t)), o;
  }, t.prototype.has = function (e) {
    return e in this.phrases;
  };
  var c = "||||",
      s = {
    chinese: function chinese(e) {
      return 0;
    },
    german: function german(e) {
      return 1 !== e ? 1 : 0;
    },
    french: function french(e) {
      return e > 1 ? 1 : 0;
    },
    russian: function russian(e) {
      return e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2;
    },
    czech: function czech(e) {
      return 1 === e ? 0 : e >= 2 && e <= 4 ? 1 : 2;
    },
    polish: function polish(e) {
      return 1 === e ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2;
    },
    icelandic: function icelandic(e) {
      return e % 10 != 1 || e % 100 == 11 ? 1 : 0;
    }
  },
      r = {
    chinese: ["fa", "id", "ja", "ko", "lo", "ms", "th", "tr", "zh"],
    german: ["da", "de", "en", "es", "fi", "el", "he", "hu", "it", "nl", "no", "pt", "sv"],
    french: ["fr", "tl", "pt-br"],
    russian: ["hr", "ru"],
    czech: ["cs"],
    polish: ["pl"],
    icelandic: ["is"]
  };
  return t;
});

cc._RF.pop();